class Person:
    def __init__(self,n,s,f,h):
        self.name = n
        self.sex = s
        self.profession = f
        self.cname = h
    def infor(self):
        print('我是,',self.name,'我是,',self.sex,'生')
    def work(self):

        print('我是一名',self.profession,'我在',self.cname,'上班')
class Chinese(Person):
    def __init__(self,n,s,f,h,m):
        Person.__init__(self,n,s,f,h)
        #Person.__init__(self,n,s,f)
        self.nation = m
        print('我来自中国')
    def natio(self):
        print("我是",self.nation,"人")


#使用子类
girl=Chinese('Tom','男','自动化测试工程师','百度','汉族')
girl.infor()
girl.work()
girl.natio()
